<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>公共入口</title>
    <link rel="stylesheet" href="../css/mui.min.css" />
    <script src="../js/mui.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/app.css" />
    <script src="../js/vconsole.min.js"></script>
    <script src="../js/jquery-3.6.0.min.js"></script>
    <!-- <script src="./js/jweixin-1.2.0.js"></script> -->
    <script src="../js/jweixin-sgccigw-1.0.0.js"></script>
    <script src="../js/sm3.js"></script>
    <script src="../js/sm2.js"></script>
    <script src="./text.js"></script>
    <script src="../js/flexible.js"></script>
    <script src="../js/login.js"></script>
</head>
<style>
    body {
        margin: 0;
        padding: 0;
    }

    .box {
        position: relative;
        width: 100%;
        height: 100%;
        color: #f6f7f9;
        text-align: center;
        background-image: #ccc;
        background-size: 100%;
    }

    .box_wrapper {
        width: 100%;
        padding: 0 10px;
        margin-top: 1rem;

    }

    .version {
        display: flex;
        justify-items: center;
        align-items: center;
        flex-direction: column;
    }

    .version img {
        width: 55px;
        height: 55px;
        margin-bottom: 20px;
    }

    .text {
        font-family: PingFang SC;
        font-weight: bold;
        color: #2d343c;
        font-size: 14px;
        margin-bottom: 50px;
    }

    .text1 {
        opacity: 60%;
        font-family: PingFang SC;
        color: #2d343c;
        font-size: 12px;
        margin-top: -3px;
    }

    .address {
        width: 100%;
        height: 1rem;
        padding: 0 .4rem;
        margin-top: 15px;
        display: flex;
        align-items: center;
        border-radius: 7px;
        /* justify-content: space-between; */
        background-color: #fff;
    }

    .address p:nth-child(1) {
        font-family: PingFang SC;
        color: #2d343c;
        font-size: 15px;
        width: 80px;
        text-align: left;
    }

    .address p:nth-child(2) {
        font-family: PingFang SC;
        color: #19AEB0;
        font-size: 14px;
    }

    .foot {
        display: flex;
        justify-content: center;
        width: 100%;
        position: absolute;
        bottom: 1rem;
        left: 0;
        width: 100%;
    }

    .foot_wrapper {
        font-family: PingFang SC;
        color: #2d343c;
        font-size: 12px;
        opacity: 60%;
        width: 100%;
    }
    .van-nav-bar{
background: none !important;;
    }
</style>
</head>

<body>
    <div class="box" id="app">
        <div class="box_wrapper">
            <div class="version">
                <img src="../image/user.png" alt="">
                <p class="text">AI助手</p>
            </div>
            <div>
            </div>
        </div>
        </div>
</body>
<script>
     var url = location.search; //获取url中"?"符后的字串 ('?modFlag=business&role=1')
     if(url.split("&")[1]) {
        console.log(1111,url.split("&")[1])
        sessionStorage.setItem("search","../common/Home.html")
        sessionStorage.setItem("activeNum","0")
     }else {
        console.log(222,url.split("=")[1])
        sessionStorage.setItem("search",".." + url.split("=")[1])
        sessionStorage.setItem("activeNum","1")
     }
        
        
    $(function () {
    $.getScript("../js/jweixin-1.2.0.js" /*"js/jweixin-1.0.0.js"*/ , function() {
        'use strict';
       
        jsApiList = [
            "getLocation",
            "getAuthCode",
            "agentConfig",
            "ext_Net_Upload",
            "getLocalResPath",
            "ext_FileBrowser_StartPreView",
            "ext_FileManager_Information",
            'ext_ISCP_Init',
            'ext_ISCP_ConnectService',
            'ext_ISCP_GetLocalPort',
            'ext_ISCP_Close',
            'ext_ISCP_Status',
            'ext_Popover_Open',
            'ext_Popover_Close',
            "multiWindows_open",
            "multiWindows_close",
            "ext_Net_FragmentUpload",
            "multiWindows_startWidget",
            "multiWindows_finishWidget",
            "multiWindows_subscribe",
            "multiWindows_publish",
            'shareWechatMessage',
            'onMenuShareTimeline',
            'chooseImage',
            'getLocalImgData',
            'previewImage',
            'uploadImage',
            'downloadImage',
            'previewFile',
            'ext_FileBrowser_ChooseDir',
            'ext_FileBrowser_AppointDirChooseFile',
            'ext_AudioRecorder_Start',
            'ext_AudioRecorder_Stop',
            'startRecord',
            'ext_Net_Download',
            'stopRecord',
            'onVoiceRecordEnd',
            'playVoice',
            'playVoice',
            'stopVoice',
            'onVoicePlayEnd',
            'startRecordVoiceBuffer',
            'onRecordBufferReceived',
            'stopRecordVoiceBuffer',
            'uploadVoice',
            'downloadVoice',
            'translateVoice',
            'ext_Net_MultiDownload',
            'getZipAppDirectory',
            'setClipboardData',
            'getClipboardData',
 'ext_FileBrowser_ChooseDir',
            'openLocation',
            'startAutoLBS',
            'stopAutoLBS',
            'onLocationChange',

            'onHistoryBack',
            'closeWindow',
            'openUrl',

            'scanQRCode',

            'launch3rdApp',

            'ocr',

            'checkJsApi',
        ];
//         wx.ready(function() {
//           wx.invoke("agentConfig", {
//                 agentid: '1003505', 
//                  corpid: 'ww4d11a39991ebffdc',
//                  timestamp: 1639582452,
//                  nonceStr: 'AMQGnmTMzhJetshY',
//                  signature: 'fb9f560a9b4824f7db3525926994010de74ea055',
//                  jsApiList: jsApiList
//             }, function(data) {
//               console.log(data,"agentConfig")
//               if(data.err_msg == "agentConfig:ok"){
//                   wx.invoke('getAuthCode', {
//                    response_type: 'code',//固定参数
//                    scope: 'snsapi_base'//固定参数
//                    }, function (res) {
//                     if(res.err_msg == "getAuthCode:ok"){
//                       iscp_ready(res.code)
//                     }else{
//                       $("#showP").html("获取用户信息失败")
//                     }
//         })
//     }
// });
//         });
        wx.ready(function() {
          wx.invoke("agentConfig", {
                agentid: '1002818', 
                 corpid: 'ww4d11a39991ebffdc',
                 timestamp: 1639582452,
                 nonceStr: 'AMQGnmTMzhJetshY',
                 signature: 'fb9f560a9b4824f7db3525926994010de74ea055',
                 jsApiList: jsApiList
            }, function(data) {
              console.log(data,"agentConfig")
              if(data.err_msg == "agentConfig:ok"){
                  wx.invoke('getAuthCode', {
                   response_type: 'code',//固定参数
                   scope: 'snsapi_base'//固定参数
                   }, function (res) {
                    if(res.err_msg == "getAuthCode:ok"){
                      iscp_ready(res.code)
                    }else{
                      $("#showP").html("获取用户信息失败")
                    }
        })
    }
});
        });
        wx.config({
            beta: true,
            debug: false,
            appId: "ww4d11a39991ebffdc",
            timestamp: "1639582452",
            nonceStr: "AMQGnmTMzhJetshY",
            signature:"fb9f560a9b4824f7db3525926994010de74ea055",
            jsApiList: jsApiList 
        });
       
  });
})
</script>

</html>